/**
 * 
 */
package fx.parser;

import java.util.HashSet;
import java.util.Set;

/**
 * @author sajia
 *
 */
public class MatchResult {
	private final Set<String> matchedPhrases;
	private boolean matched;
	private boolean doneMatching;
	
	public MatchResult() {
		this.matchedPhrases = new HashSet<String>();
	}
	
	public boolean isMatched() {
		return this.matched;
	}
	
	public void setMatched(final boolean matched) {
		this.matched = matched;
	}
	
	public boolean isDoneMatching() {
		return this.doneMatching;
	}
	
	public void doneMatching() {
		this.doneMatching = true;
	}
	
	public void addMatchedPhrase(final String phrase) {
		this.matchedPhrases.add(phrase);
	}
	
	public Set<String> getMatchedPhrases() {
		return new HashSet<String>(this.matchedPhrases);
	}
}
